<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var array1=new Array();
			array1[0]="123";
			console.log(array1);
			console.log(array1.length);
			array1[1]=true;
			console.log(array1[1]);
			console.log(array1.length);
			array1.push("wasd");
			console.log(array1);
			console.log(array1.length);
			console.log(array1.pop());/*先进后出，后进先出*/
			console.log(array1.pop());
			var date1=new Date();
			console.log(date1);
			var date2=new Date("2018/12/24 12:12:20");
			console.log(date2);
			var year=date1.getFullYear();
			var month=date1.getMonth();
			var day=date1.getDate();
			console.log(year+"年"+(month+1)+"月"+day+"日");
			console.log(date1.toLocaleTimeString());
			console.log(date1.toLocaleDateString());
			
		</script>
	</head>
	<body>
		
	</body>
</html>
